cmake_minimum_required(VERSION 2.6)

project(Omav)

set(EXECUTABLE_OUTPUT_PATH bin/)

IF(WIN32)
	set( OGRE_SDK_PATH 	"c:/dev/OgreSDK/" CACHE STRING "Chemin vers Ogre3D" )
	set( OGRE_DEPS_PATH "c:/dev/OgreSDK/Dependencies/" CACHE STRING "Dépendances d'ogre3d" )
	set( MYGUI_PATH 	"c:/dev/MyGUI2.2.3_source/" CACHE STRING "Chemin vers MyGUI" )
	set( BOOST_PATH		"c:/dev/boost/boost_1_46_1/" CACHE STRING "Chemin vers boost" )
	
ENDIF(WIN32)

IF(UNIX)
	include_directories(/usr/local/include)
	include_directories(/usr/local/include/)
	include_directories(/usr/local/include/OGRE)
	include_directories(/usr/local/include/MYGUI)
	include_directories(/usr/include)
	link_directories(/usr/lib/)
	link_directories(/usr/local/lib/)
ENDIF(UNIX)

IF(WIN32)
	include_directories(${OGRE_SDK_PATH}/include)
	include_directories(${OGRE_SDK_PATH}/include/OGRE)
#	include_directories(${OGRE_DEPS_PATH}/include)
	include_directories(${MYGUI_PATH}/MyGUIEngine/include)
	include_directories(${BOOST_PATH})

	link_directories(${OGRE_SDK_PATH}/lib/release)
#	link_directories(${OGRE_DEPS_PATH}/lib/Release)
	link_directories(${BOOST_PATH}/lib)
	link_directories(${MYGUI_PATH}/MyGUIEngine/lib/release)
ENDIF(WIN32)

include_directories(include/)

file(
	GLOB_RECURSE
	source_files
	src/*.cpp
	include/*.h
)

add_executable(
	Omav
	${source_files}
)

target_link_libraries(
	Omav

	OgreMain
	OIS
	mygui
)

